<template>
  <div>
    <div>父组件的数据:{{ message }}</div>
    <custom-input @input="input" v-model="message"></custom-input>
  </div>
</template>

<script>
import CustomInput from "./customInput.vue";
export default {
  components: {
    CustomInput,
  },
  model: {},
  data() {
    return {
      message: "我是父组件1",
      parentValue: "我是父组件2",
    };
  },
  methods: {
    input(val) {
      console.log(val, "子组件输入框的值");
    },
  },
  created() {
    console.log("子组件v-model传值生效，刷新页面");
  },
};
</script>
<style scoped></style>
